// 统一导出
// 导入颜色选择器组件
import Button from './components/button copy'
import Icon from './components/icon'
// import ButtonGroup from "./components/button-group";
import Input from './components/input copy'
import Row from './components/row'
import Col from './components/col'
import Layout from './components/layout'
import Header from './components/header'
import Sider from './components/sider'
import Content from './components/content'
import Footer from './components/footer'
import Toast from './components/toast'
import Dialog from './components/dialog'

// import plugin from './components/plugin.js'

import Tabs from './components/tabs'
import TabsItem from './components/tabs-item'
import TabsBody from './components/tabs-body'
import TabsHeader from './components/tabs-header'
import TabsPane from './components/tabs-pane'
import Popover from './components/popover'
import Collapse from './components/collapse'
import CollapseItem from './components/collapse-item'
import Switch from './components/switch'
import Radio from './components/radio'
import RadioGroup from './components/radio-group'
import Checkbox from './components/checkbox'
import CheckboxGroup from './components/checkbox-group'
import Form from './components/form'
import FormItem from './components/form-item'

import './assets/fonts/font.scss'
// 存储组件列表
// const components = [
//   Button,
//   Icon,
//   Input,
//   Row,
//   Col,
//   Layout,
//   Header,
//   Sider,
//   Content,
//   Footer,
//   Toast,
//   Dialog,
//   Tabs,
//   TabsItem,
//   TabsBody,
//   TabsHeader,
//   TabsPane,
//   Popover,
//   Collapse,
//   CollapseItem,
//   Switch,
//   Radio,
//   RadioGroup,
//   Checkbox,
//   CheckboxGroup,
//   Form,
//   FormItem
// ]

// 定义 install 方法，接收 Vue 作为参数。如果使用 use 注册插件，则所有的组件都将被注册
// const install = function(Vue, opts = {}) {
//   components.map(component => {
//     Vue.component(component.name, component)
//   })
// }

// // 判断是否是直接引入文件,如果是，就不用调用 Vue.use()
// if (typeof window !== 'undefined' && window.Vue) {
//   install(window.Vue)
// }

// 导出的对象必须具有 install，才能被 Vue.use() 方法安装
// export default {
// install
// Button,
// Icon,
// Input,
// Row,
// Col,
// Layout,
// Header,
// Sider,
// Content,
// Footer,
// Toast,
// Dialog,
// Tabs,
// TabsItem,
// TabsBody,
// TabsHeader,
// TabsPane,
// Popover,
// Collapse,
// CollapseItem,
// Switch,
// Radio,
// RadioGroup,
// Checkbox,
// CheckboxGroup,
// Form,
// FormItem
// }

export default {
  Button,
  Icon,
  Input,
  Row,
  Col,
  Layout,
  Header,
  Sider,
  Content,
  Footer,
  Toast,
  Dialog,
  Tabs,
  TabsItem,
  TabsBody,
  TabsHeader,
  TabsPane,
  Popover,
  Collapse,
  CollapseItem,
  Switch,
  Radio,
  RadioGroup,
  Checkbox,
  CheckboxGroup,
  Form,
  FormItem
}
